package com.kchouse.common;

import java.text.DecimalFormat;

public class MyUtils {


    /**
     * DecimalFormat转换最简便
     * @param s
     */
    public static String getdouble(Double s) {
        DecimalFormat df = new DecimalFormat("0.0");
        String str=df.format(s);
        return str;
    }

    /**
     * DecimalFormat转换最简便
     * @param s
     */
    public static String getdouble2(Double s) {
        DecimalFormat df = new DecimalFormat("0.00");
        String str=df.format(s);
        return str;
    }






}
